// (Find the number of years) Write a program that prompts the user to enter the 
// minutes (e.g., 1 billion), and displays the number of years and days for the minutes. 
// For simplicity, assume a year has 365 days.

import java.util.Scanner;

public class test27 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        
        // 提示用户输入分钟数
        System.out.print("Enter the number of minutes: ");
        long minutes = input.nextLong();
        
        // 计算总天数（1天 = 1440分钟）
        long totalDays = minutes / (24 * 60);
        
        // 计算年数（1年 = 365天）
        long years = totalDays / 365;
        
        // 计算剩余天数
        long remainingDays = totalDays % 365;
        
        // 显示结果
        System.out.println(minutes + " minutes is approximately " + 
                           years + " years and " + remainingDays + " days");
        
        // 关闭Scanner
        input.close();
    }
}
